﻿@model IList<ProductTagModel>
@using Nop.Web.Framework.UI;
@using Nop.Web.Models.Catalog;
@if (Model != null && Model.Count > 0)
{
    <div class="tabhead">
        <h3>@T("Products.Tags")</h3>
    </div>
    <div class="tabinfo">
        <div class="producttags-box">
            <div class="producttags-list">
                @for (int i = 0; i < Model.Count; i++)
                {
                    <a href="@Url.RouteUrl("ProductsByTag", new { productTagId = Model[i].Id, SeName = Model[i].Name })" class="producttag">
                        @Model[i].Name</a> <text>(</text>@(Model[i].ProductCount)<text>)</text>
                    if (i != Model.Count - 1)
                    {
                    <text>, </text>
                    }
                }
            </div>
        </div>
    </div>
}